package org.jeecg.modules.wms.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 采购退货换货记录表
 * @Author: jeecg-boot
 * @Date: 2023-08-10
 * @Version: V1.0
 */
@Data
@TableName("wms_purchase_return_exchange")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="wms_purchase_return_exchange对象", description="采购退货换货记录表")
public class WmsPurchaseReturnExchange implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "采购单ID")
    @Excel(name = "采购单ID", width = 15)
    private String purchaseOrderId;

    @ApiModelProperty(value = "采购单号")
    @Excel(name = "采购单号", width = 15)
    private String purchaseOrderNo;

    @ApiModelProperty(value = "质检记录ID")
    @Excel(name = "质检记录ID", width = 15)
    private String inspectionId;

    @ApiModelProperty(value = "物料ID")
    @Excel(name = "物料ID", width = 15)
    private String materialId;

    @ApiModelProperty(value = "物料编码")
    @Excel(name = "物料编码", width = 15)
    private String materialCode;

    @ApiModelProperty(value = "物料名称")
    @Excel(name = "物料名称", width = 15)
    private String materialName;

    @ApiModelProperty(value = "物料类型")
    @Excel(name = "物料类型", width = 15)
    private String materialType;

    @ApiModelProperty(value = "规格型号")
    @Excel(name = "规格型号", width = 15)
    private String specification;

    @ApiModelProperty(value = "数量")
    @Excel(name = "数量", width = 15)
    private BigDecimal quantity;

    @ApiModelProperty(value = "单位")
    @Excel(name = "单位", width = 15)
    private String unit;

    @ApiModelProperty(value = "单价")
    @Excel(name = "单价", width = 15)
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "金额")
    @Excel(name = "金额", width = 15)
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "退换货单号")
    @Excel(name = "退换货单号", width = 15)
    private String returnExchangeNo;

    @ApiModelProperty(value = "类型（1-退货，2-换货）")
    @Excel(name = "类型", width = 15, dicCode = "return_exchange_type")
    private Integer type;

    @ApiModelProperty(value = "状态（0-待处理，1-处理中，2-已完成，3-已取消）")
    @Excel(name = "状态", width = 15, dicCode = "return_exchange_status")
    private Integer status;

    @ApiModelProperty(value = "原因")
    @Excel(name = "原因", width = 15)
    private String reason;

    @ApiModelProperty(value = "凭证图片")
    @Excel(name = "凭证图片", width = 15)
    private String evidence;

    @ApiModelProperty(value = "供应商ID")
    @Excel(name = "供应商ID", width = 15)
    private String supplierId;

    @ApiModelProperty(value = "供应商名称")
    @Excel(name = "供应商名称", width = 15)
    private String supplierName;

    @ApiModelProperty(value = "备注")
    @Excel(name = "备注", width = 15)
    private String remark;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "处理人")
    private String processBy;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "处理时间")
    private Date processTime;
} 